
<script id="view-center-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-center">
		<input type="hidden" name="id" value="{{id}}">
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="type">机构类型</label>
					<div class="col-sm-8">
						<select name="type" id="type" class="chosen-select" data-entity="com.app.miwawa.api.system.entity.config.Codec">
							{{chosen type}}
						</select>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">机构名称</label>
					<div class="col-sm-8">
						<input name="name" id="name" type="text" class="form-control" required="required" value="{{name}}">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="code">机构编码</label>
					<div class="col-sm-8">
						<input name="code" id="code" type="text" class="form-control" readonly="readonly" value="{{code}}">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="brand">品牌</label>
					<div class="col-sm-8">
						<input type="text" name="brand" id="brand" class="form-control" readonly="readonly" value="{{brand}}"/>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="director">负责人</label>
					<div class="col-sm-8">
						<input type="text" name="director" id="director" class="form-control" value="{{director}}"/>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="mobile">手机</label>
					<div class="col-sm-8">
						<input name="mobile" id="mobile" type="text" class="form-control" value="{{mobile}}"> 
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="dburl">数据源地址</label>
					<div class="col-sm-8">
						<input type="text" name="dburl" id="dburl" class="form-control" value="{{dburl}}"/>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="dbname">数据源名称</label>
					<div class="col-sm-8">
						<input type="text" name="dbname" id="dbname" class="form-control" required="required" value="{{dbname}}"/>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="createDate">注册时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input name="createDate" id="createDate" type="text" class="form-control" value="{{createDate}}"> 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-center">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-center', '.form-editor-center');" data-submit-callback="updateAdmin">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>

<script id="form-region-template" type="text/x-handlebars-template">
	<fieldset class="field-group"></fieldset>
	<form class="form-horizontal form-editor form-editor-region">
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">校区名称</label>
					<div class="col-sm-8">
						<input name="name" id="name" type="text" class="form-control" required="required">
					</div>
				</div>
			</div>
			<div class="col-sm-2">
				<div class="form-group">
					<div class="col-sm-12">
						<div class="input-group">
							<select name="prov" class="chosen-select" id="prov">
								<option value="310000">上海</option>
							</select> 
							<span class="input-group-addon">省</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="form-group">
					<div class="col-sm-12">
						<div class="input-group">
							<select name="pref" class="chosen-select" id="pref">
								<option value="310100">上海</option>
							</select> 
							<span class="input-group-addon">市</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="form-group">
					<div class="col-sm-12">
						<div class="input-group">
							<select name="county" class="chosen-select" id="county">
							</select> 
							<span class="input-group-addon">区县</span>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-center">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-region', '.form-editor-region');">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>

<script id="view-region-template" type="text/x-handlebars-template">
	{{#each this}}
		<form class="form-horizontal form-editor form-viewer-region">
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label required" for="name">校区名称</label>
						<div class="col-sm-8">
							<input name="name" id="name" type="text" class="form-control" required="required" value="{{name}}">
						</div>
					</div>
				</div>
				<div class="col-sm-2">
					<div class="form-group">
						<div class="col-sm-12">
							<div class="input-group">
								<select name="prov" id="prov" class="chosen-select">
									<option value="310000">上海</option>
								</select> 
								<span class="input-group-addon">省</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-3">
					<div class="form-group">
						<div class="col-sm-12">
							<div class="input-group">
								<select name="pref" id="pref" class="chosen-select">
									<option value="310100">上海</option>
								</select> 
								<span class="input-group-addon">市</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-3">
					<div class="form-group">
						<div class="col-sm-12">
							<div class="input-group">
								<select name="county" id="county" class="chosen-select">
									{{region county}}
								</select> 
								<span class="input-group-addon">区县</span>
							</div>
						</div>
					</div>
				</div>
			</div>
	
			<div class="widget-footer editor-footer-sm">
				<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-center">
					<i class="glyphicon glyphicon-remove"></i>
				</button>
				<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-region', '.form-viewer-region');">
					<i class="glyphicon glyphicon-ok"></i>
				</button>
			</div>
		</form>
	{{/each}}
</script>
		
	
	
